/*day_mon1.c -- 打印每个月的天数*/
#include "stdio.h"

#define MONTHS 12

void main(){
    const int days[MONTHS] = {31,28,31,30,31,30,31,31,30,31,30,31};
    int index;

    for(index = 0;index < MONTHS; index++){
        printf("index=%d,days=%d\r\n",index + 1, days[index]);
    }
}